﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="giohangcuaban.aspx.cs" Inherits="giohangcuaban" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
    <asp:View ID="View1" runat="server">
    <div align="center" style="background-color:white">
        <div style="width:730px;font-size:30px; color: #0066FF;" align="center" >
            Giỏ Hàng Của Bạn
        </div>
     
       <asp:Panel ID="Panel1" runat="server" Height="50px" Width="730px" >
       <div align="center">
       <asp:Label ID="lb" runat="server" Font-Bold="True" ForeColor="#0066FF" 
                Text="Bạn chưa có sản phẩm nào trong giỏ hàng của mình!" 
                Width="78%" Height="17px" ></asp:Label>
                </div>
           
           <div align="center">
            <asp:HyperLink ID="HyperLink17" runat="server" Font-Bold="True" 
                Font-Underline="True" ForeColor="#0066FF" NavigateUrl="~/sanpham.aspx">Quay lại trang sản phẩm để mua hàng</asp:HyperLink>
                </div>
            <br />
       </asp:Panel>
           <asp:Panel ID="Panel2" runat="server" >
           <br />
           <br />
       <div align="center" style="width: 730px" >
           <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
               AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" 
               CellSpacing="10" onrowcancelingedit="GridView1_RowCancelingEdit" 
               onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"  
               onrowupdating="GridView1_RowUpdating" onrowupdated="GridView1_RowUpdated">
             <PagerSettings Mode="NumericFirstLast"   />
               <Columns>
                <asp:ImageField DataImageUrlField="hinh" HeaderText="Hình ảnh" 
                    ReadOnly="True">
                    <ControlStyle Height="80px" />
                </asp:ImageField>
                <asp:BoundField DataField="tensach" HeaderText="Tên sản phẩm" 
                    ReadOnly="True" />
                <asp:BoundField DataField="dongia" HeaderText="Đơn giá" ReadOnly="True" />
                <asp:BoundField DataField="soluong" HeaderText="Số lượng" />
                <asp:CommandField ShowEditButton="True" ButtonType="Button" CancelText="Hủy" 
                    DeleteText="Xóa" EditText="Sửa" UpdateText="Cập nhật" />
                <asp:CommandField ShowDeleteButton="True" ButtonType="Button" CancelText="Hủy" 
                    DeleteText="Xóa" />
            </Columns>
         
           </asp:GridView>
       </div>
     


    <table align="center" cellpadding="0" cellspacing="0"  style="width :100%">
            <tr>
                <td colspan="2" align="center">
                <br />
                    <asp:Label ID="lbtongtien" runat="server" Font-Bold="True" ForeColor="#0066FF" 
                        Height="19px"></asp:Label>
                    <asp:Label ID="Label12" runat="server" Font-Bold="True" ForeColor="#0066FF" 
                        Text="VND"></asp:Label>
                    <br />
                </td>
            </tr>

           <tr>

                <td style="text-align:center">
                   <asp:Button ID="btnmuatiep" runat="server" Height="26px" BackColor="#A52B2B" ForeColor="White"
                        Text="Tiếp tục" Width="100px" onclick="btnmuatiep_Click1" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:Button ID="btnxoatoanbo" runat="server" Height="26px" BackColor="#A52B2B" ForeColor="White"
                        Text="Xóa toàn bộ" Width="100px" onclick="btnxoatoanbo_Click"/>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnguidon" runat="server" Height="26px" BackColor="#A52B2B" ForeColor="White"
                        Width="100px" Text="Thanh Toán" onclick="btnguidon_Click" />
                    </td>
            </tr>
            </table>
              </asp:Panel>
</div>
    </asp:View>
    <asp:View ID="View2" runat="server">
    <div align="center" style="padding-top: 20px">
     <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#0066FF" 
                Text="Bạn chưa đăng nhập, hãy đăng nhập để mua hàng" 
                Width="78%" Height="17px" ></asp:Label>
                <br />
                 <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                Font-Underline="True" ForeColor="#0066FF" NavigateUrl="~/dangnhap.aspx">Đăng Nhập</asp:HyperLink>
    </asp:View>
    </div>
    </asp:MultiView>
</asp:Content>

